package com.stylefeng.guns.modular.drugstype.service.impl;

import com.stylefeng.guns.common.persistence.model.Drugs;
import com.stylefeng.guns.common.persistence.model.DrugsType;
import com.stylefeng.guns.modular.drugs.dao.DrugsDao;
import com.stylefeng.guns.modular.drugstype.dao.DrugstypeDao;
import org.springframework.stereotype.Service;
import com.stylefeng.guns.modular.drugstype.service.IDrugstypeService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * drugstypeDao
 *
 * @author fengshuonan
 * @Date 2019-07-12 10:27:32
 */
@Service
public class DrugstypeServiceImpl implements IDrugstypeService {
    @Resource
    private DrugstypeDao mapper;

    @Override
    public List<Map<String, Object>> list(String condition) {
        return mapper.list(condition);
    }


    @Override
    public int IfDrugsType(Integer id) {
        return mapper.IfDrugsType(id);
    }

    @Override
    public DrugsType getDrugsById(Integer id) {
        return mapper.getDrugsById(id);
    }


}
